package net.sf.brutil.v0.server;

import java.util.List;

public class DummyModel {

    protected static class Order{
        Customer customer;
        double total;
        List<OrderLine> lines;
        public Customer getCustomer() {
            return customer;
        }
        public void setCustomer(Customer customerName) {
            this.customer = customerName;
        }
        public double getTotal() {
            return total;
        }
        public void setTotal(double total) {
            this.total = total;
        }
        public List<OrderLine> getLines() {
            return lines;
        }
        public void setLines(List<OrderLine> lines) {
            this.lines = lines;
        }
        public Order(Customer customer, double total, List<OrderLine> lines) {
            super();
            this.customer = customer;
            this.total = total;
            this.lines = lines;
        }
        public Order() {
            
        }
        
        
        
    }
    protected static class Address{
        
        String name;
        String town;
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }
        public String getTown() {
            return town;
        }
        public void setTown(String town) {
            this.town = town;
        }
        public Address(String name, String town) {
            super();
            this.name = name;
            this.town = town;
        }
        
    }

    protected static class Customer{
        String name;
        Address deliveryAddress;
        public String getName() {
            return name;
        }
        public Customer(String name, Address deliveryAddress) {
            super();
            this.name = name;
            this.deliveryAddress = deliveryAddress;
        }
        public void setName(String name) {
            this.name = name;
        }
        public Address getDeliveryAddress() {
            return deliveryAddress;
        }
        public void setDeliveryAddress(Address deliveryAddress) {
            this.deliveryAddress = deliveryAddress;
        }
        
    }

    protected static  class OrderLine{
        String item;
        double price;
        public String getItem() {
            return item;
        }
        public OrderLine(String item, double price) {
            super();
            this.item = item;
            this.price = price;
        }
        public void setItem(String item) {
            this.item = item;
        }
        public double getPrice() {
            return price;
        }
        public void setPrice(double price) {
            this.price = price;
        }
        
        
    }
}
